package cn.tedu.net.collection.design;

public class Test3_DesignInter {
    public static void main(String[] args) {
        //接口的实现类调用方法
        CGB ct = new CGB();
        ct.ready();
        ct.teach();
    }
}
//创建接口
interface Teacher2{
    public abstract void ready();
    public abstract void teach();
}
//创建接口的实现类
class CGB implements Teacher2{
    @Override
    public void ready() {
        System.out.println("正在备课,电商项目");
    }

    @Override
    public void teach() {
        System.out.println("正在讲课,电商项目");
    }
}
//创建接口的抽象子类
abstract class ACT implements Teacher2{
    @Override
    public void ready() {
        System.out.println("正在备课,基础加强,框架加强,高新技术");
    }
    public abstract void teach();
}